import { _decorator, Button } from 'cc';
import { BasePopUp } from '../../../A-FRAME/component/ui.pop-up';
import { AudioMgr } from '../../../Mgr/AudioMgr';
import { Url } from '../../../Tools/Url';
import { Popup } from '../page/popup';
const { ccclass, property } = _decorator;

@ccclass('ExceptionPage')
export class ExceptionPage extends BasePopUp<typeof Popup, { type: string, value: number }> {
    protected default_return: { type: string; value: number; };
    public onShow(...param: any[]): void {
        BasePopUp.jelly_enter(this.node);
    }
    protected _click_event_: { [name: string]: (this: ExceptionPage, button: Button) => void; } = {
        closeBtn(){
            AudioMgr.ins.playOneShot(Url.AUDIO.SFX2, 1);
            BasePopUp.jelly_leave(this.node).then(()=>{
                this.close(null);
            });
        }
    }
}

